package com.xiaouyudeguang.common.handler;

import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DemoJobHandler extends IJobHandler {

    @Override
    @XxlJob("demoJobHandler")
    public void execute() throws Exception {
        log.info("dealJobHandler.{}", System.currentTimeMillis());
    }
}
